package com.by.service.impl;

import com.by.bean.Porder;
import com.by.mapper.PorderMapper;
import com.by.service.PorderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PorderServiceImpl implements PorderService {
    @Autowired
    PorderMapper porderMapper;
    public int save(Porder porder){
        return porderMapper.save(porder);
    }
    public List  query(Porder order){
        return  porderMapper.query(order);
    }

    @Override
    public int pUpdateStatus(Porder order) {
        return porderMapper.pUpdateStatus(order);
    }
}
